<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5><span><vc:i18n name="查询条件"></vc:i18n></span></h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择预约时间','communitySpacePersonManage')" v-model="communitySpacePersonManageInfo.conditions.appointmentTime" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择预约人','communitySpacePersonManage')" v-model="communitySpacePersonManageInfo.conditions.personName" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择预约电话','communitySpacePersonManage')" v-model="communitySpacePersonManageInfo.conditions.personTel" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryCommunitySpacePersonMethod()">
                                    <i class="glyphicon glyphicon-search"></i> <span><vc:i18n name="查询"></vc:i18n></span>
                            </button>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="communitySpacePersonManageInfo.conditions.state">
                                <option selected  value="">{{vc.i18n('请选择状态','communitySpacePersonManage')}}</option>
                                <option  value="S">{{vc.i18n('预约成功','communitySpacePersonManage')}}</option>
                                <option  value="F">{{vc.i18n('预约失败','communitySpacePersonManage')}}</option>
                                <option  value="W">{{vc.i18n('待审核','communitySpacePersonManage')}}</option>
                                <option  value="F">{{vc.i18n('待支付','communitySpacePersonManage')}}</option>
                            </select>
                        </div>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="communitySpacePersonManageInfo.conditions.spaceId">
                                <option selected  value="">{{vc.i18n('请选择预约场地','communitySpacePersonManage')}}</option>
                                <option  :value="item.spaceId" v-for="(item,index) in communitySpacePersonManageInfo.spaces">{{item.name}}</option>
                            </select>
                        </div>



                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5><span><vc:i18n name="预约订单"  namespace="communitySpacePersonManage"></vc:i18n></span></h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center"><span><vc:i18n name='订单编号' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='场馆' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='场地' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='预约人' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='预约电话' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='预约日期' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='预约时间' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='应收金额' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='实收金额' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='支付方式' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='状态' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='创建时间' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='备注' namespace='communitySpacePersonManage'></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name='操作'></vc:i18n></span></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="communitySpacePerson in communitySpacePersonManageInfo.communitySpacePersons">
                                <td class="text-center">{{communitySpacePerson.cspId}}</td>
                                <td class="text-center">{{communitySpacePerson.venueName}}</td>
                                <td class="text-center">{{communitySpacePerson.spaceName}}</td>
                                <td class="text-center">{{communitySpacePerson.personName}}</td>
                                <td class="text-center">{{communitySpacePerson.personTel}}</td>
                                <td class="text-center">{{communitySpacePerson.appointmentTime}}</td>
                                <td class="text-center">
                                    <span v-for="(time,index) in  communitySpacePerson.times">{{time.hours}},</span>
                                </td>
                                <td class="text-center">{{communitySpacePerson.receivableAmount}}</td>
                                <td class="text-center">{{communitySpacePerson.receivedAmount}}</td>
                                <td class="text-center">{{communitySpacePerson.payWayName}}</td>
                                <td class="text-center">{{communitySpacePerson.stateName}}</td>
                                <td class="text-center">{{communitySpacePerson.createTime}}</td>
                                <td class="text-center">{{communitySpacePerson.remark}}</td>
                                <td class="text-center">
                                    <div class="btn-group" v-if="communitySpacePerson.state == 'S'">
                                        <button class="btn-white btn btn-xs" v-on:click="_openDeleteCommunitySpacePersonModel(communitySpacePerson)"><span><vc:i18n name='取消预约'></vc:i18n></span></button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="7">
                                    <ul class="pagination float-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>

    <vc:create path="property/deleteCommunitySpacePerson"></vc:create>

</div>